#include "widget.h"
#include "ui_widget.h"

Widget::Widget(QWidget *parent)
    : QWidget(parent)
    , ui(new Ui::Widget)
{
    ui->setupUi(this);
    connect(this,&Widget::mySignals,this,&Widget::mySlots);
    emit mySignals();
}

Widget::~Widget()
{
    delete ui;
}

void Widget::mySlots()
{
    qDebug() << "好好学习，天天向上。" ;
}
